package edu.sctu.practice.class02.lvchang.test07;

/**
 * Created by Administrator on 2015/10/9.
 */
public class WuMingFen {

    public String theMa;
    public int quantity;
    public boolean likeSoup;

    public WuMingFen() {
        this.theMa = "beef";
        this.quantity = 2;
    }

    public WuMingFen(String theMa, int quantity, boolean likeSoup) {
        this.theMa = theMa;
        this.quantity = quantity;
        this.likeSoup = likeSoup;
    }

    public void check() {
        System.out.println("theMa:" + theMa);
        System.out.println("quantity:" + quantity);
        System.out.println("likeSoup:" + likeSoup);
    }

    public static void main(String[] args) {

        WuMingFen wuMingFen1 = new WuMingFen();
        WuMingFen wuMingFen2 = new WuMingFen("beef", 3, true);
        WuMingFen wuMingFen3 = new WuMingFen("sour and hot", 2, true);

        wuMingFen1.check();
        wuMingFen2.check();
        wuMingFen3.check();
    }
}

